package com.un.ebs.product.dto;

import com.un.ebs.product.enums.ProductPurchaseTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/8/28 20:26
 * <p>
 * 直接添加SKU
 */
@Data
public class ProductSkuByUpdateDto {

    private String id;

    @NotNull(message = "编码不能为空。")
    private String code;

    @NotNull(message = "名称不能为空。")
    private String name;

    private ProductPurchaseTypeEnum purchaseType;

    private String seqId;

    private Double price;

    @NotNull(message = "类别不能为空。")
    private String classId;
}
